﻿//
// Created: 2018/12/15
// Author: chenqiang
//
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;
using Model.ZXBuiness;

namespace Model.ZXBuiness.Map
{
    internal  class ZXTiXianApplyMap:EntityTypeConfiguration< ZXTiXianApply >    
    {
        public ZXTiXianApplyMap()
        {
             this.ToTable("ZX_TiXianApply");
             this.HasKey(i => new { i.TiXianId });
            this.Property(i => i.TiXianId).HasColumnName("TiXianId");
            this.Property(i => i.UserFenRunId).HasColumnName("UserFenRunId");                     
             this.Property(i => i.ZX_UserId).HasColumnName("ZX_UserId");                     
             this.Property(i => i.OrderFengyunId).HasColumnName("OrderFengyunId");                     
             this.Property(i => i.ApplyTime).HasColumnName("ApplyTime");                     
             this.Property(i => i.State).HasColumnName("State");                     
             this.Property(i => i.ApproveOper).HasColumnName("ApproveOper");                     
             this.Property(i => i.ApproveTime).HasColumnName("ApproveTime");                     
             this.Property(i => i.ApproveMoney).HasColumnName("ApproveMoney");                     
             this.Property(i => i.BalanceCode).HasColumnName("BalanceCode");                     
             this.Property(i => i.Remarks).HasColumnName("Remarks");
             this.Property(i => i.ApplyUserCode).HasColumnName("ApplyUserCode");
            
        }   
    }
    
     public static class ZXTiXianApplyMapExtensions
    {
        public static void UserZXTiXianApplyMap(this DbModelBuilder pModelBuilder)
        {
            pModelBuilder.Configurations.Add(new ZXTiXianApplyMap());
        }
    }
}